home *** CD-ROM | disk | FTP | other *** search
/ Hot Super Models / Hot Super Models.iso / unix / x11 / xv200.tar / xv-2.00 / unsupt / VMS / DESCRIP.MMS < prev    next >
Text File  |  1992-01-01  |  6KB  |  178 lines

  1. # MMS Description file for xv
  2. #
  3. #   Modified from the Unix Makefile by Rick Dyson  8-NOV-1991
  4. #                                      (dyson@iowasp.physics.uiowa.edu)
  5.  
  6. # Author:    John Bradley, University of Pennsylvania
  7. #                 (bradley@cis.upenn.edu)
  8. #
  9. # Copyright 1989, 1990 by the University of Pennsylvania
  10. #
  11. # Permission to use, copy, and distribute for non-commercial purposes,
  12. # is hereby granted without fee, providing that the above copyright
  13. # notice appear in all copies and that both the copyright notice and this
  14. # permission notice appear in supporting documentation. 
  15. # The software may be modified for your own purposes, but modified versions
  16. # may not be distributed.
  17. #
  18. # This software is provided "as is" without any express or implied warranty.
  19.  
  20.  
  21. ################ CONFIGURATION OPTIONS #################
  22.  
  23. # if you are running on a SysV-based machine, such as HP, Silicon Graphics,
  24. # etc, uncomment the following line to get you most of the way there.  
  25. #
  26. #UNIX = -DSVR4
  27.  
  28. # If you are running on a POSIX-compatible machine, such as an
  29. # IBM RS6000, you MAY need to uncomment the 'NEED_DIRENT' line.
  30. # To determine if such is the case, do a 'man readdir' on your machine.  If
  31. # readdir() returns a pointer to 'struct direct', you will not have
  32. # to change anything.  If, however, readdir() returns a pointer to
  33. # 'struct dirent', you will have to add the '-DDIRENT' to CFLAGS
  34. #
  35. #NEED_DIRENT = -DDIRENT
  36.  
  37. # If, when 'Applying' colors, or when loading new pictures, you get an
  38. # X Protocol Error on the XFreeColors() call, your X Server is Wrong.
  39. # Several workarounds:  You can specify '-bfc' on the command line, or
  40. # set the 'xv.brokeFreeCols' resource to 'true'.  Alternately, you can
  41. # uncomment the BROKECOLS line below to compile in the workarounds
  42. # permanently.  If you do this, '-bfc' will toggle OFF the workarounds.
  43. # Noteworthy Offenders:  AIX 3.1 on IBM 6000, and OLW on Suns
  44. #
  45. #BROKECOLS = -DBROKEFREECOLS
  46.  
  47. # If your machine doesn't have the 'strchr', 'memset' and 'memcpy' functions,
  48. # but does have 'bcopy', uncomment the following line:
  49. #
  50. #USEMEM = -DNEED_MEMROUTINES
  51.  
  52. # IF YOUR MACHINE DOESN'T HAVE 'vprintf()' OR 'vsprintf()'
  53. #
  54. # Vax BSD and IBM AOS don't have vprintf or vsprintf.
  55. # Note that our local library versions of sprintf have been updated
  56. # to return int, the number of characters in the formatted string,
  57. # whereas the versions in stock 4.3BSD do not so return.  You may
  58. # have to remove the "-DINTSPRINTF" below if you're compiling for
  59. # stock 4.3BSD or for some other Vax or RT library package where
  60. # sprintf returns char *.
  61. #
  62. # Also, I define NOVOID on the Vax because I'm using pcc to compile.
  63. # If you use gcc or some other better compiler, this should not be
  64. # necessary.  I define NOSTDHDRS on the RT because we don't have
  65. # standard ANSI header files installed for the RT, even though the RT
  66. # compiler claims to be ANSI-compliant.
  67. #
  68. #  (for BSD 4.3 VAX, uncomment the following line)
  69. #VPRINTF = -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOVOID
  70. #  (for (stock) IBM RT AOS 4.3, uncomment the following line)
  71. #VPRINTF = -DNEED_VPRINTF -DLONGINT -DNOSTDHDRS
  72.  
  73. # If your machine does not have the 'setitimer()' call, but does
  74. # have the 'usleep()' call, uncomment the following line:
  75. #
  76. #TIMERS = -DUSLEEP
  77. #
  78. # alternately, if your machine does not have EITHER the 'setitimer()' or
  79. # the 'usleep()' call, uncomment the following line:
  80. #
  81. #TIMERS = -DNOTIMER
  82.  
  83. # If you are using an AT&T machine, uncomment the following line
  84. # If you have problems compiling xv.c and xvdir.c because of the DIR
  85. # reference in dirent.h, append '-DATT' to the following line:
  86. #
  87. #ATT = -DSYSV -DDIRENT -DUSLEEP -DATT
  88.  
  89. # For SCO and ODT machines, uncomment the following:
  90. #
  91. #SCO = -Dsco -DPOSIX -DNOTIMER
  92. #
  93. # Itimers will be in 3.2v3 (yeah!) but that won't be out in the public's
  94. # hands for a while.  Hey, it's just the fish anyways.
  95. #
  96. # Also, you'll want to change LIBS to
  97. #
  98. #  -lX11 -lm -lsocket -lmalloc -lc -lx
  99. #
  100. # -lx must be after -lc so you get the right directory routines.
  101. #
  102.  
  103. DEFS = /Define=(LONGINT,NOTIMER,ATT,DIRENT)
  104.  
  105. OPTIMIZE = /Optimize
  106. DEBUG = /NoDebug
  107. CFLAGS = $(CFLAGS) $(DEFS) $(DEBUG) $(OPTIMIZE)
  108. LINKFLAGS = $(LINKFLAGS) $(DEBUG)
  109. OPTS = Sys$Disk:[]OPTIONS.OPT
  110.  
  111. XVLIB = XV.OLB
  112.  
  113. BITMAPS = [.bitmaps]grasp [.bitmaps]penn [.bitmaps]down [.bitmaps]down1 \
  114.       [.bitmaps]up [.bitmaps]up1 [.bitmaps]scrlgray [.bitmaps]gray50 \
  115.       [.bitmaps]gray25 [.bitmaps]i_fifo [.bitmaps]i_chr [.bitmaps]i_dir \
  116.       [.bitmaps]i_blk [.bitmaps]i_lnk [.bitmaps]i_sock [.bitmaps]i_reg \
  117.       [.bitmaps]rb_off [.bitmaps]rb_on [.bitmaps]rb_off1 [.bitmaps]rb_on1 \
  118.       [.bitmaps]fc_left [.bitmaps]fc_leftm [.bitmaps]fc_mid \
  119.       [.bitmaps]fc_midm [.bitmaps]fc_right [.bitmaps]fc_rightm \
  120.       [.bitmaps]fc_left1 [.bitmaps]fc_left1m [.bitmaps]fc_right1 \
  121.       [.bitmaps]fc_right1m [.bitmaps]icon
  122.  
  123. BITMAPLIST = grasp,penn,down,down1,up,up1,scrlgray,gray50,gray25,i_fifo,i_chr,i_dir,i_blk,i_lnk,i_sock,i_reg,rb_off,rb_on,rb_off1,rb_on1,fc_left,fc_leftm,fc_mid,fc_midm,fc_right,fc_rightm,fc_left1,fc_left1m,fc_right1,fc_right1m,icon
  124.  
  125. SRCS =  argproc.c vmsreaddir.c xv24to8.c xvbutt.c xvctrl.c xvdir.c xvfish.c xvgam.c xvgif.c xvgifwr.c xvinfo.c xvmisc.c xvpbm.c xvpm.c xvscrl.c xvxbm.c bggen.c xv.c
  126.  
  127. OBJS =  argproc.obj vmsreaddir.obj xv24to8.obj xvbutt.obj xvctrl.obj xvdir.obj \
  128.     xvfish.obj xvgam.obj xvgif.obj xvgifwr.obj xvinfo.obj xvmisc.obj \
  129.         xvpbm.obj xvpm.obj xvscrl.obj xvxbm.obj
  130.  
  131. OBJLIST = argproc,vmsreaddir,xv24to8,xvbutt,xvctrl,xvdir,xvfish,xvgam,xvgif,xvgifwr,xvinfo,xvmisc,xvpbm,xvpm,xvscrl,xvxbm
  132.  
  133. MISC = readme patchlevel
  134.  
  135. .first
  136.     Define Sys Sys$Library
  137.     Define X11 DECW$Include
  138.  
  139. all :         $(XVLIB) xv.exe bggen.exe
  140.     @ continue
  141.  
  142. lib :       $(XVLIB)
  143.     @ continue
  144.  
  145. xv.exe :     xv.c bitmaps.h $(XVLIB) $(OPTS)
  146.     $(CC) $(CFLAGS) xv.c
  147.     - $(LINK) $(LINKFLAGS) xv,$(XVLIB)/Library,$(OPTS)/Option
  148.  
  149. bggen.exe :     bggen.c $(XVLIB) $(OPTS)
  150.     $(CC) $(CFLAGS) bggen.c
  151.     - $(LINK) $(LINKFLAGS) bggen,$(XVLIB)/Library,$(OPTS)/Option
  152.     
  153. xv.olb :    bitmaps.h $(OBJS)
  154.     Library /Create XV.OLB $(OBJLIST)
  155.  
  156. $(OBJS) :       xv.h
  157. xv.obj :    bitmaps.h
  158. xvbutt.obj :      bitmaps.h
  159. xvctrl.obj :      bitmaps.h
  160. xvdir.obj :    xv.h dirent.h
  161. xvinfo.obj :      bitmaps.h
  162. xvmisc.obj :      bitmaps.h
  163. xvscrl.obj :      bitmaps.h
  164. argproc.obj :    includes.h
  165. vmsreaddir.obj :    dirent.h
  166.  
  167. bitmaps.h :     $(BITMAPS)
  168.     Set Default [.Bitmaps]
  169.     - Copy $(BITMAPLIST) [-]bitmaps.h
  170.     Set Default [-]
  171.  
  172. clean :
  173.     @- Purge
  174.  
  175. tar :
  176.     tar cvf xv_pl3a.tar Makefile. *.c *.h [.bitmaps]*.* [.docs]*.* $(MISC)
  177.